﻿using System;
using DemoPathfinding.Hotfix.Components;
using ETHotfix;
using ETModel;

namespace DemoPathfinding.Hotfix {

    [ObjectSystem]
    public class HotfixInit : AwakeSystem<HotfixComponent> {
        public override void Awake(HotfixComponent self) {
            if (StartConfigComponent.Instance.StartConfig.AppType.HasFlag(AppType.Realm)) {
                Game.Scene.AddComponent<RealmGateAddressComponent>();
            }
            if (StartConfigComponent.Instance.StartConfig.AppType.HasFlag(AppType.Gate)) {
                Game.Scene.AddComponent<GateLoginKeyComponent>();
            }
            if (StartConfigComponent.Instance.StartConfig.AppType.HasFlag(AppType.Map)) {

            }
        }
    }
}
